package com.example.expresscabinet.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.expresscabinet.model.sendexpress;
import com.example.expresscabinet.model.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface sendexpressMapper extends BaseMapper<sendexpress> {

    @Update("update sendexpress " +
            "set states='已取走' " +
            "where expresstel=#{expresstel} and code=#{code}")
    void updateStates(@Param("expresstel")String expresstel,@Param("code")String code);
}
